/**
 * Created by Cundong Zhang, 6.1.2018
 */

var bkm = bkm || {};

//For angular dynamically define enum types
if (typeof module == 'object') {
    module.exports = bkm;
}

(function () {
    'use strict';

    //对象常量定义，建议只能定义最多一层子对象，访问时按照bkm.CST.parent_child_property访问，如bkm.CST.VAL_ID_CODE
    bkm.commConstants = {
        VAL: { //for validation
            // ID_CODE: "^[1-9]\\d{5}[1-9]\\d{3}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}([0-9]|X|x)$",
            ID_CODE: "^(11|12|13|14|15|21|22|23|31|32|33|34|35|36|37|41|42|43|44|45|46|51|52|53|54|50|61|62|63|64|65|71|81|82)\\d{4}(19|20)\\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9X]$",
            VEHICLE_NO: "^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DAF][A-HJ-NP-Z0-9][0-9]{4}$))|^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$",
            VEHICLE_FARM_NO: "^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼]\\d{7}$",
            TRAILER_VEHICLE_NO: "^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}挂$",
            PHONE_NO: "^[1](([3][0-9])|([4][0,1,4-9])|([5][0-3,5-9])|([6][2,5,6,7])|([7][0-8])|([8][0-9])|([9][0-3,5-9]))[0-9]{8}$",
            CHINESE_NAME: "^[\u4e00-\u9fa5·]{2,25}$",
            VEHICLE_OWNER_NAME: "^[\u4E00-\u9FA5（）\(\)\·]+$",
            DRIVER_QUALIFICATION: "^\\d{6,29}[0-9X]$", // 司机从业资格证编号
            BANKCARD_NO: "^([1-9]{1})(\\d{14,18})$",
            ENTERRISE_BANK_ACCOUNT: "^([0-9]{1})(\\d{8,21})$",
            CNAPS_CODE: "^\\d{12}$",
            PASSWORD: "^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{8,20}$",
            USERNAME: "^[a-zA-Z][a-zA-Z0-9_]{4,15}$",
            AMOUNT: "^(\\-|\\+)?\\d+(\\.\\d+)?$",
            QUALIFICATION_NO: "^\\d{12}$", // 经营许可证号
            OPERATION_NO: "^\\d{6,20}$", // 道路运输证证号
            ADDRESS: "^[\u4E00-\u9FA5A-Za-z0-9$￥（）~/%_#*,，。！·《》？.()\\[\\]\\s]+$",
            SOCIAL_CREDIT_CODE: "^((?!([iozsv]|[^a-zA-Z0-9])).){18}$", // 纳税人登记号|统一社会信用代码
            ENV_PROTECTION_ID: "^[0-9a-zA-Z]{17}$" //车辆环保编号
        },
        MSG: {
            NetErr: "对不起，网络请求错误，请稍后重试！",
            CHINESE_NAME_ERR: "中文姓名格式不正确",
            ID_CODE_ERR: "身份证号格式不正确",
            VEHICLE_NO_ERR: "车牌号格式不正确",
            VEHICLE_FARM_NO_ERR: "挂车牌号格式不正确",
            PHONE_NO_ERR: "手机号格式不正确",
            BANKCARD_NO_ERR: "银行卡号格式不正确",
            ENTERRISE_BANK_ACCOUNT_ERR: "银行账号格式不正确",
            CNAPS_CODE_ERR: "联行号格式不正确",
            QUALIFICATION_NO_ERR: "经营许可证号格式不正确",
            OPERATION_NO_ERR: "道路运输证号格式不正确",
            ADDRESS_ERR: "地址字符格式不正确",
            SOCIAL_CREDIT_CODE_ERR: "由18位数字或者大写字母组成,但是字母不包括 I、O、Z、S、V",
            VEHICLE_OWNER_NAME_ERR: "公司名称格式错误",
            DRIVER_QUALIFICATION_ERR: "司机从业资格证编号错误"
        },
        FEATURE: {
            DispatchImport: "DispatchImport",
            Location: "Location",
            Payment: "Payment",
            Finance: "Finance",
            InvoiceOnline: "InvoiceOnline",
            ETCTrade: "ETCTrade",
            Subcontrac: "Subcontrac",
            NonTransport: "NonTransport"
        }
    };

    //前端字典数据的本地定义
    var dictionaries = {
        'HasDataError': [{
            key: false,
            value: 'False',
            name: '数据无误'
        }, {
            key: true,
            value: 'True',
            name: '数据有误'
        }],
        'DriverType': [{
            key: false,
            value: 'False',
            name: '司机'
        }, {
            key: true,
            value: 'True',
            name: '车主'
        }],
        'TrueFalse': [{
            key: false,
            value: 'False',
            name: "否"
        }, {
            key: true,
            value: 'True',
            name: "是"
        }],
        'UserActiveStatus': [{
            key: false,
            value: 'False',
            name: "已禁用"
        }, {
            key: true,
            value: 'True',
            name: "已启用"
        }],
        'SuccessStatus': [{
            key: false,
            value: 'False',
            name: "失败"
        }, {
            key: true,
            value: 'True',
            name: "成功"
        }],
        'AddressType': [{
            key: 0,
            name: '装货地',
            value: 'LOADED'
        }, {
            key: 1,
            name: '卸货地',
            value: 'UNLOADED'
        }],
        'AuthStatus': [{
            key: 0,
            name: '未认证',
            value: 'UNCHECKED'
        }, {
            key: 1,
            name: '认证中',
            value: 'CHECKING'
        }, {
            key: 2,
            name: '认证通过',
            value: 'PASSED'
        }, {
            key: 3,
            name: '认证失败',
            value: 'REJECTED'
        }],
        'AuthStatusPart': [{
            key: 2,
            name: '认证通过'
        }, {
            key: 3,
            name: '认证失败'
        }],
        'ApproveStatus': [{
            key: 0,
            name: '待审核',
            value: 'UNCHECK'
        }, {
            key: 1,
            name: '审核中',
            value: 'CHECKING'
        }, {
            key: 2,
            name: '审核通过',
            value: 'PASSED'
        }, {
            key: 3,
            name: '已拒绝',
            value: 'REJECTED'
        }],
        'ValidStatus': [{
            key: 0,
            name: "已失效",
            value: 'Invalid'
        }, {
            key: 1,
            name: "已生效",
            value: 'Valid'
        }, {
            key: 2,
            name: "待生效",
            value: 'ToBeValid'
        }],
        'TimeType': [{
            key: 0,
            value: "loaded",
            name: "发货"
        }, {
            key: 1,
            value: "receipt",
            name: "签收"
        }, {
            key: 2,
            value: "creation",
            name: "创建"
        }, {
            key: 3,
            value: "dispatchNo",
            name: "派单"
        }, {
            key: 4,
            value: "finish",
            name: "完成"
        }, {
            key: 5,
            value: "receiptUpload",
            name: "签收上传"
        }, {
            key: 6,
            value: "payment",
            name: "付款"
        }],
        'LoanTimeType': [{
            key: 0,
            value: "creation",
            name: "创建日期"
        }, {
            key: 1,
            value: "value",
            name: "起息日期"
        }, {
            key: 2,
            value: "expire",
            name: "到期日期"
        }, {
            key: 3,
            value: "repay",
            name: "还款日期"
        }],
        'ExchangesTimeType': [{
            key: 0,
            value: 'Upload',
            name: "上传时间"
        }, {
            key: 1,
            value: 'Creation',
            name: "创建时间"
        }],
        'TenantScope': [{
            key: 0,
            value: 'Unknow',
            name: "未知货源"
        }, {
            key: 1,
            value: 'Self',
            name: "自有货源"
        }, {
            key: 2,
            value: 'Other',
            name: "第三方货源"
        }],
        'ServiceChargeUnit': [{
            key: 0,
            value: 'Ton',
            name: "元/吨"
        }, {
            key: 1,
            value: 'Vehicle',
            name: "元/车"
        }],
        'SettleType': [{
            key: 0,
            value: 'Batch',
            name: '按批次'
        }, {
            key: 1,
            value: 'Single',
            name: '按单车'
        }],
        'FinalWeightPolicy': [{
            key: 0,
            value: 'Loaded',
            name: '按发货'
        }, {
            key: 1,
            value: 'Reception',
            name: '按签收'
        }, {
            key: 2,
            value: 'Min',
            name: '取最小'
        }],
        'SettledStatus': [{
            key: 0,
            value: 'Unknow',
            name: "未知"
        }, {
            key: 1,
            value: 'UpSettled',
            name: "货主已结算"
        }, {
            key: 2,
            value: 'UpUnSettled',
            name: "货主未结算"
        }],
        'PaymentBillType': [{
            key: 0,
            value: 'Down',
            name: "下游资金流水"
        }, {
            key: 1,
            value: 'Up',
            name: "上游资金流水"
        }],
        'TransDocConfirmStatus': [{
            key: 0,
            value: 'Unknow',
            name: "未知"
        }, {
            key: 1,
            value: 'LoadConfirm',
            name: "发货已确认"
        }, {
            key: 2,
            value: 'ReceptConfirm',
            name: "签收已确认"
        }, {
            key: 3,
            value: 'LoadReceptConfirm',
            name: "发货签收已确认"
        }, {
            key: 4,
            value: 'LoadReceptUnConfirm',
            name: "发货签收未确认"
        }, {
            key: 5,
            value: 'LoadConfirmNoRecept',
            name: "发货已确认签收未确认"
        }, {
            key: 6,
            value: 'ReceptConfirmNoLoad',
            name: "发货未确认签收已确认"
        }],
        'SettleReportType': [{
            key: 0,
            value: 'Up',
            name: '上游结算单'
        }, {
            key: 1,
            value: 'Down',
            name: '下游结算单'
        }],
        'ReceivableStatus': [{
            key: 0,
            value: 'ToBeReceived',
            name: '待收款'
        }, {
            key: 1,
            value: 'Received',
            name: '已收款'
        }],
        'PayableStatus': [{
            key: 0,
            value: 'Unpaying',
            name: '待付款'
        }, {
            key: 1,
            value: 'Paid',
            name: '已付款'
        }],
        'SeqType': [{
            key: 0,
            value: 'Receivable',
            name: '收款'
        }, {
            key: 1,
            value: 'Payable',
            name: '付款'
        }],
        'AgentMode': [{
            key: 0,
            value: 'Company',
            name: '企业'
        }, {
            key: 1,
            value: 'Personal',
            name: '个人'
        }],
        'MatchStatus': [{
            key: 0,
            value: 'Original',
            name: '人工匹配'
        }, {
            key: 1,
            value: 'Matched',
            name: '系统匹配'
        }, {
            key: 2,
            value: 'Empty',
            name: '未匹配'
        }],
        'HaveOrNot': [{
            key: false,
            value: 'False',
            name: "无"
        }, {
            key: true,
            value: 'True',
            name: "有"
        }],
        'LoanAccountType': [{
            key: 0,
            value: 'JJD',
            name: '晋金小贷'
        }],
        'LoanProductType': [{
            key: 0,
            value: 'JJD_7',
            name: '提现宝(晋金贷7天期)'
        }, {
            key: 1,
            value: 'JJD_15',
            name: '提现快(晋金贷15天期)'
        }, {
            key: 2,
            value: 'AntCredit90',
            name: '蚂蚁凭证(蚂蚁凭证90天期)'
        }],
        'CapitalStatus': [{
            key: 0,
            value: 'Unprocessed',
            name: '未处理'
        }, {
            key: 1,
            value: 'Processed',
            name: '已放款'
        }],
        'LoanContractStatus': [{
            key: 0,
            value: 'Applying',
            name: '申请中'
        }, {
            key: 1,
            value: 'Normal',
            name: '正常'
        }, {
            key: 2,
            value: 'Overdue',
            name: '逾期'
        }, {
            key: 3,
            value: 'Settle',
            name: '结清'
        }, {
            key: 4,
            value: 'Cancel',
            name: '作废'
        }, {
            key: 5,
            value: 'Delay',
            name: '延期'
        }, {
            key: 6,
            value: 'Failed',
            name: '申请失败'
        }, {
            key: 7,
            value: 'Uncheck',
            name: '待审核'
        }, {
            key: 8,
            value: 'Rejected',
            name: '已拒绝'
        }],
        'RepaymentStatus': [{
            key: 0,
            value: 'NotApplied',
            name: '未申请'
        }, {
            key: 1,
            value: 'Applying',
            name: '申请中'
        }, {
            key: 2,
            value: 'Success',
            name: '还款成功'
        }, {
            key: 3,
            value: 'Failed',
            name: '还款失败'
        }, {
            key: 4,
            value: 'RollBack',
            name: '已撤回'
        }],
        'AccountStatus': [{
            key: 0,
            value: 'Normal',
            name: '正常'
        }, {
            key: 1,
            value: 'Frozen',
            name: '冻结'
        }, {
            key: 2,
            value: 'Cancel',
            name: '作废'
        }, {
            key: 3,
            value: 'Applying',
            name: '认证中'
        }, {
            key: 4,
            value: 'Failure',
            name: '认证失败'
        }],
        'AccountCategory': [{
            key: 3,
            value: 'CASH',
            name: '充值账户'
        }, {
            key: 4,
            value: 'LOAN',
            name: '贷款账户'
        }, {
            key: 5,
            value: 'LEND',
            name: '放贷账户'
        }, {
            key: 8,
            value: 'ADVANCE',
            name: '运费预付款账户'
        }, {
            key: 10,
            value: 'Driver',
            name: '司机运费账户'
        }, {
            key: 15,
            value: 'GrossProfit',
            name: '服务费暂扣户'
        }, {
            key: 16,
            value: 'InvoicePayCredit',
            name: '授信账户'
        }, {
            key: 20,
            value: 'Cleaning',
            name: '清分户'
        }, {
            key: 21,
            value: 'Collection',
            name: '运费代收账户'
        }, {
            key: 22,
            value: 'ChannelStandard',
            name: '平台渠道子户'
        }, {
            key: 25,
            value: 'InnerFuelIn',
            name: '油气户'
        }, {
            key: 26,
            value: 'InnerGrossProfit',
            name: '服务费暂扣户'
        }],
        'AssetSettleStatus': [{
            key: 0,
            value: 'Normal',
            name: '正常'
        }, {
            key: 1,
            value: 'Frozen',
            name: '冻结'
        }],
        'AssetSettleFrozenType': [{
            key: 0,
            value: 'Cash',
            name: '提现中'
        }, {
            key: 1,
            value: 'Loan',
            name: '贷款冻结'
        }, {
            key: 2,
            value: 'Force',
            name: '强制冻结'
        }],
        'AssetValidStatus': [{
            key: 0,
            value: 'Valid',
            name: '有效资产'
        }, {
            key: 1,
            value: 'Cancel',
            name: '已取消'
        }, {
            key: 2,
            value: 'Cash',
            name: '已提现'
        }],
        'BankCardType': [{
            key: 0,
            value: 'DC',
            name: '储蓄卡'
        }, {
            key: 1,
            value: 'CC',
            name: '信用卡'
        }, {
            key: 2,
            value: 'SCC',
            name: '准贷记卡'
        }, {
            key: 3,
            value: 'PC',
            name: '预付费卡'
        }],
        'RoleType': [{
            key: 0,
            value: 'Unknow',
            name: '未知'
        }, {
            key: 1,
            value: 'agent',
            name: '经纪人'
        }, {
            key: 2,
            value: 'trader',
            name: '货主'
        }, {
            key: 3,
            value: 'vehicleOwner',
            name: '车主'
        }, {
            key: 4,
            value: 'driver',
            name: '司机'
        }],
        'WalletCustomerRole': [{
            key: 0,
            value: 'Agent',
            name: '车队'
        }, {
            key: 1,
            value: 'Driver',
            name: '司机'
        }, {
            key: 2,
            value: 'Trader',
            name: '货主'
        }, {
            key: 3,
            value: 'Tenant',
            name: '平台'
        }],
        'UploadStatus': [{
            key: 0,
            value: 'Uploading',
            name: "上传中"
        }, {
            key: 1,
            value: 'Success',
            name: "上传成功"
        }, {
            key: 2,
            value: 'UploadFailure',
            name: "上传失败"
        }, {
            key: 3,
            value: 'ValidFailure',
            name: "验证失败"
        }, {
            key: 4,
            value: 'NotUpload',
            name: "未上传"
        }, {
            key: 99,
            value: 'NotGenerated',
            name: "未生成"
        }],
        'SendToAgentStatus': [{
            key: 0,
            value: 'NotSend',
            name: "未生成"
        }, {
            key: 1,
            value: 'Sent',
            name: "已生成"
        }],
        'InterfaceType': [{
            key: 0,
            name: '部委接口',
            value: 'EXCHANGES_LOGINK'
        }, {
            key: 1,
            name: '物润接口',
            value: 'EXCHANGES_SHIP56'
        }],
        'CompanyType': [{
            key: 0,
            value: 'Logistic',
            name: '物流公司'
        }, {
            key: 1,
            value: 'Trader',
            name: '货主'
        }, {
            key: 2,
            value: 'Purchaser',
            name: '收货方'
        }, {
            key: 3,
            value: 'Supplier',
            name: '供应商'
        }, {
            key: 4,
            value: 'Finance',
            name: '金融公司'
        }, {
            key: 5,
            value: 'TaxSubstitute',
            name: '税务代开公司'
        }, {
            key: 6,
            value: 'TraderLogis',
            name: '货主物流公司'
        }, {
            key: 7,
            value: 'Branch',
            name: '分支机构'
        }],
        'PlatformType': [{
            key: 0,
            value: 'Private',
            name: "专用租户平台"
        }, {
            key: 1,
            value: 'Public',
            name: "亿公里公共平台"
        }],
        'VehicleCertType': [{
            key: 0,
            value: 'DrivingLicense',
            name: '司机驾驶证'
        }, {
            key: 1,
            value: 'VehicleLicense',
            name: '行驶证'
        }, {
            key: 2,
            value: 'OperationLicense',
            name: '道路运输证'
        }, {
            key: 3,
            value: 'IdentityLicense',
            name: '司机身份证'
        }, {
            key: 4,
            value: 'Qualification',
            name: '从业资格证'
        }],
        'EffectNode': [{
            key: 0,
            value: 'Dispatch',
            name: '派车时间'
        }, {
            key: 1,
            value: 'Load',
            name: '发货时间'
        }, {
            key: 2,
            value: 'Arrive',
            name: '签收时间'
        }],
        'DrawerType': [{
            key: 0,
            value: 'LogisCompany',
            name: '物流公司'
        }, {
            key: 1,
            value: 'Agent',
            name: '车队'
        }, {
            key: 5,
            value: 'Substitute',
            name: '税务代开机构'
        }, {
            key: 7,
            value: 'Branch',
            name: '分支机构'
        }],
        'ServiceChargeType': [{
            key: 0,
            value: 'FixedAmount',
            name: '固定金额'
        }, {
            key: 1,
            value: 'Rate',
            name: '按比例'
        }],
        'FuelChargeType': [{
            key: 0,
            value: 'None',
            name: '无'
        }, {
            key: 1,
            value: 'FixedAmount',
            name: '固定金额'
        }, {
            key: 2,
            value: 'Rate',
            name: '按比例'
        }],
        'BatchPayType': [{
            key: 0,
            value: 'BySettle',
            name: '结算单付款'
        }, {
            key: 1,
            value: 'ByDetail',
            name: '明细付款'
        }],
        'PaymentStatus': [{
            key: 0,
            value: 'Ongoing',
            name: '付款中'
        }, {
            key: 1,
            value: 'Success',
            name: '付款成功'
        }, {
            key: 2,
            value: 'Failure',
            name: '付款失败'
        }, {
            key: 3,
            value: 'Unpay',
            name: '未付款'
        }],
        'CashStatus': [{
            key: 0,
            value: 'Ongoing',
            name: '提现中'
        }, {
            key: 1,
            value: 'Success',
            name: '提现成功'
        }, {
            key: 2,
            value: 'Failure',
            name: '提现失败'
        }, {
            key: 3,
            value: 'Unpay',
            name: '未提现'
        }],
        'PaidTo': [{
            key: 0,
            value: 'PaidTo',
            name: '银行卡'
        }, {
            key: 1,
            value: 'DriverWallet',
            name: '司机钱包'
        }],
        'DispatchCreatedBy': [{
            key: 0,
            value: 'ByAgent',
            name: '车队派车'
        }, {
            key: 1,
            value: 'ByDriver',
            name: '司机抢单'
        }],
        'InvoiceStatus': [{
            key: 0,
            value: 'Normal',
            name: '正常'
        }, {
            key: 1,
            value: 'Cancel',
            name: '作废'
        }, {
            key: 2,
            value: 'Redl',
            name: '红冲'
        }, {
            key: 3,
            value: 'Opening',
            name: '开票中'
        }, {
            key: 4,
            value: 'Failed',
            name: '失败'
        }, {
            key: 5,
            value: 'NotOpen',
            name: '未开票'
        }],
        'InvoicePrintStatus': [{
            key: 0,
            value: 'UnPrint',
            name: '未打印'
        }, {
            key: 1,
            value: 'Printed',
            name: '已打印'
        }],
        'InvoicePrintType': [{
            key: 0,
            value: 'Invoice',
            name: '发票'
        }, {
            key: 1,
            value: 'Detail',
            name: '清单'
        }],
        'BankCardVerifyType': [{
            key: 0,
            value: 'Unknow',
            name: '未知'
        }, {
            key: 2,
            value: 'TwoElement',
            name: '二要素验证'
        }, {
            key: 3,
            value: 'ThreeElement',
            name: '三要素验证'
        }, {
            key: 4,
            value: 'FourElement',
            name: '四要素验证'
        }],
        'TradingOrderType': [{
            key: 1,
            value: 'AgencyPay',
            name: '运费提现'
        }, {
            key: 2,
            value: 'Recharge',
            name: '客户充值'
        }, {
            key: 4,
            value: 'Repayment',
            name: '还款'
        }, {
            key: 7,
            value: 'InvoicePay',
            name: '运费补差'
        }, {
            key: 8,
            value: 'ServiceFee',
            name: '下游服务费'
        }, {
            key: 10,
            value: 'FundCollection',
            name: '资金归集'
        }, {
            key: 11,
            value: 'Refund',
            name: '退款'
        }, {
            key: 12,
            value: 'FundDistribute',
            name: '资金调拨'
        }, {
            key: 13,
            value: 'TransOut',
            name: '利润转出'
        }, {
            key: 17,
            value: 'FreightPay',
            name: '代付还款'
        }, {
            key: 18,
            value: 'InnerAgencyPay',
            name: '支付司机钱包'
        }, {
            key: 22,
            value: 'CascadeTrans',
            name: '分支机构交易'
        }, {
            key: 23,
            value: 'ChannelSubAccount',
            name: '银行渠道子户交易'
        }, {
            key: 999,
            value: 'Other',
            name: '其它'
        }],
        'TransDocType': [{
            key: 0,
            value: 'Loading',
            name: '装货'
        }, {
            key: 1,
            value: 'Receipt',
            name: '签收'
        }, {
            key: 2,
            value: 'Other',
            name: '其他'
        }],
        'PayWay': [{
            key: 0,
            value: 'Offline',
            name: '线下支付'
        }, {
            key: 1,
            value: 'NewPay',
            name: '新生支付'
        }, {
            key: 2,
            value: 'JJDPay',
            name: '晋金贷代付'
        }, {
            key: 3,
            value: 'CIBK',
            name: '中信银行'
        }],
        'UpOrDown': [{
            key: 0,
            value: 'Up',
            name: '上游'
        }, {
            key: 1,
            value: 'Down',
            name: '下游'
        }],
        'TransDocsType': [{
            key: 0,
            value: 'Load',
            name: '发货'
        }, {
            key: 1,
            value: 'Receipt',
            name: '签收'
        }],
        'SettleInvoiceStatus': [{
            key: 0,
            value: 'NotApply',
            name: '未申请'
        }, {
            key: 1,
            value: 'Applying',
            name: '申请中'
        }, {
            key: 2,
            value: 'Approved',
            name: '开票中'
        }, {
            key: 3,
            value: 'Invoiced',
            name: '已开票'
        }, {
            key: 4,
            value: 'Rejected',
            name: '已拒绝'
        }],
        'InvoiceApplyStatus': [{
            key: 0,
            name: '待审核',
            value: 'UNCHECK'
        }, {
            key: 1,
            name: '审核中',
            value: 'CHECKING'
        }, {
            key: 2,
            name: '审核通过',
            value: 'PASSED'
        }, {
            key: 3,
            name: '已拒绝',
            value: 'REJECTED'
        }, {
            key: 4,
            name: '已开票',
            value: 'INVOICED'
        }, {
            key: 5,
            name: '已生成',
            value: 'Created'
        }, {
            key: 6,
            name: '撤回中',
            value: 'Canceling'
        }],
        'DispatchStatus': [{
            key: 0,
            value: 'Uncheck',
            name: '待审核'
        }, {
            key: 1,
            value: 'Checking',
            name: '审核中'
        }, {
            key: 2,
            value: 'Dispatched',
            name: '已派单'
        }, {
            key: 3,
            value: 'Rejected',
            name: '已拒绝'
        }, {
            key: 4,
            value: 'Accepted',
            name: '已接单'
        }, {
            key: 5,
            value: 'Printed',
            name: '已打印'
        }, {
            key: 6,
            value: 'Loaded',
            name: '已装运'
        }, {
            key: 7,
            value: 'OnWay',
            name: '在途'
        }, {
            key: 8,
            value: 'Arrived',
            name: '已签收'
        }, {
            key: 9,
            value: 'Finished',
            name: '已完成'
        }, {
            key: 10,
            value: 'Canceled',
            name: '已作废'
        }, {
            key: 11,
            value: 'Unpaid',
            name: '待支付'
        }],
        'DispatchLocationStatus': [{
            key: 0,
            value: 'Unknow',
            name: '未定位'
        }, {
            key: 1,
            value: 'Normal',
            name: '定位匹配'
        }, {
            key: 2,
            value: 'LocationNotExist',
            name: '无数据'
        }, {
            key: 3,
            value: 'LoadLocationError',
            name: '卸货地匹配'
        }, {
            key: 4,
            value: 'UnloadLocationError',
            name: '装货地匹配'
        }, {
            key: 5,
            value: 'LoadAndUnloadLocationError',
            name: '轨迹存在'
        }, {
            key: 6,
            value: 'PassLoadLocation',
            name: '经过装货地'
        }, {
            key: 7,
            value: 'PassUnloadLocation',
            name: '经过卸货地'
        }, {
            key: 8,
            value: 'PassLoadAndUnloadLocation',
            name: '经过装卸货地'
        }],
        'GoodsStatus': [{
            key: 0,
            value: 'Uncheck',
            name: '待审核'
        }, {
            key: 1,
            value: 'Checking',
            name: '审核中'
        }, {
            key: 2,
            value: 'Published',
            name: '已发布'
        }, {
            key: 3,
            value: 'Rejected',
            name: '已拒绝'
        }, {
            key: 4,
            value: 'Failed',
            name: '已流标'
        }, {
            key: 5,
            value: 'Finished',
            name: '已完成'
        }, {
            key: 6,
            value: 'Recycled',
            name: '已回收'
        }, {
            key: 7,
            value: 'Canceled',
            name: '已作废'
        }],
        "ExpenseType": [{
            key: 0,
            value: 'DispatchPay',
            name: '运费付款'
        }, {
            key: 1,
            value: 'InvoicePay',
            name: '开票扣款'
        }, {
            key: 2,
            value: 'Recharge',
            name: '充值'
        }],
        "VehicleLevel": [{
            key: 0,
            value: 'L1',
            name: '一星 *'
        }, {
            key: 1,
            value: 'L2',
            name: '二星 **'
        }, {
            key: 2,
            value: 'L3',
            name: '三星 ***'
        }, {
            key: 3,
            value: 'L4',
            name: '四星 ****'
        }, {
            key: 99,
            value: 'Ln',
            name: '无星'
        }],
        "TimeSpan": [{
            key: 0,
            value: 'All',
            name: '全部'
        }, {
            key: 1,
            value: 'Today',
            name: '今天'
        }, {
            key: 2,
            value: 'Tomorrow',
            name: '明天'
        }, {
            key: 3,
            value: 'Week',
            name: '本周'
        }, {
            key: 4,
            value: 'Month',
            name: '本月'
        }],
        "InvoiceSplitType": [{
            key: 0,
            value: 'Default',
            name: '系统默认'
        }, {
            key: 1,
            value: 'Province',
            name: '按省'
        }, {
            key: 2,
            value: 'ProvinceCity',
            name: '按省市'
        }, {
            key: 3,
            value: 'Route',
            name: '按线路'
        }],
        "JointTrans": [{
            key: 0,
            value: 'None',
            name: '无'
        }, {
            key: 1,
            value: 'H2RByContainer',
            name: '公铁集装箱联运'
        }],
        "LossWay": [{
            key: 0,
            value: 'NotSet',
            name: '未设置'
        }, {
            key: 1,
            value: 'Rate',
            name: '按比例'
        }, {
            key: 2,
            value: 'Weight',
            name: '按重量'
        }],
        "SettleBillType": [{
            key: 0,
            value: "Settlement",
            name: "结算单"
        }, {
            key: 1,
            value: "Payment",
            name: "付款单"
        }, {
            key: 2,
            value: "LogisAssistant",
            name: "物流辅助单"
        }, {
            key: 3,
            value: "PreSettleAsset",
            name: "结算批次"
        }],
        "TradingOrderStatus": [{
            key: 0,
            value: "Processing",
            name: "处理中"
        }, {
            key: 1,
            value: "Success",
            name: "成功"
        }, {
            key: 2,
            value: "Failed",
            name: "失败"
        }, {
            key: 3,
            value: "Unprocessed",
            name: "未处理"
        }],
        "DQKpiType": [{
            key: 0,
            value: 'DriverVehicleStar',
            name: '车辆星级'
        }, {
            key: 2,
            value: 'SelfService',
            name: '自助货主'
        }],
        "FinalAmountSettlePolicy": [{
            key: 0,
            value: 'ByDivision',
            name: '除法计算'
        }, {
            key: 1,
            value: 'ByMulitiplication',
            name: '乘法计算'
        }],
        "SettleRateType": [{
            key: 0,
            value: 'TaxRate',
            name: '销项费率'
        }, {
            key: 1,
            value: 'SettleAmountRate',
            name: '结算金额费率'
        }],
        "SettleAttachesType": [{
            key: 0,
            value: 'LogisContract',
            name: '运输合同'
        }, {
            key: 1,
            value: 'Other',
            name: '其他'
        }],
        "Unit": [{
            key: 0,
            value: 'Ton',
            name: '吨'
        }, {
            key: 1,
            value: 'Kg',
            name: '千克'
        }, {
            key: 2,
            value: 'Stere',
            name: '立方米'
        }, {
            key: 3,
            value: 'Car',
            name: '车'
        }, {
            key: 4,
            value: 'Piece',
            name: '件'
        }, {
            key: 5,
            value: 'Box',
            name: '箱'
        }],
        "PriceUnit": [{
            key: 0,
            value: 'Ton',
            name: '元/吨'
        }, {
            key: 1,
            value: 'Kg',
            name: '元/千克'
        }, {
            key: 2,
            value: 'Stere',
            name: '元/立方米'
        }, {
            key: 3,
            value: 'Car',
            name: '元/车'
        }, {
            key: 4,
            value: 'Piece',
            name: '元/件'
        }, {
            key: 5,
            value: 'Box',
            name: '元/箱'
        }],
        "ComplaintStatus": [{
            key: 0,
            value: 'ToBeAssign',
            name: '待分配'
        }, {
            key: 1,
            value: 'InProcess',
            name: '处理中'
        }, {
            key: 2,
            value: 'Confirming',
            name: '反馈中'
        }, {
            key: 3,
            value: 'Closed',
            name: '已关闭'
        }],
        "ComplaintType": [{
            key: 0,
            value: 'Consult',
            name: '咨询'
        }, {
            key: 1,
            value: 'Complaint',
            name: '投诉'
        }],
        "ComplaintCategory": [{
            key: 0,
            value: 'Advises',
            name: '售前咨询'
        }, {
            key: 1,
            value: 'Transportation',
            name: '运输服务'
        }, {
            key: 2,
            value: 'Finances',
            name: '财务问题'
        }, {
            key: 3,
            value: 'System',
            name: '系统使用'
        }, {
            key: 4,
            value: 'Operation',
            name: '运营服务'
        }],
        "TicketPriority": [{
            key: 0,
            value: 'Urgent',
            name: '紧急'
        }, {
            key: 1,
            value: 'Important',
            name: '重要'
        }, {
            key: 2,
            value: 'Normal',
            name: '一般'
        }],
        "DriverJoinWay": [{
            key: 0,
            value: 'ByAgent',
            name: '车队添加'
        }, {
            key: 1,
            value: 'Register',
            name: '司机注册'
        }],
        "Gender": [{
            key: 0,
            value: 'Male',
            name: '男'
        }, {
            key: 1,
            value: 'Female',
            name: '女'
        }, {
            key: 2,
            value: 'Unknow',
            name: '未知'
        }],
        "CertificateType": [{
            key: 0,
            value: 'IDCard',
            name: '身份证'
        }, {
            key: 1,
            value: 'Passport',
            name: '护照'
        }, {
            key: 2,
            value: 'Company',
            name: '营业执照'
        }, {
            key: 3,
            value: 'Officer',
            name: '军官证'
        }],
        "DrivingLicenseType": [{
            key: 0,
            value: 'A1',
            name: 'A1'
        }, {
            key: 1,
            value: 'A2',
            name: 'A2'
        }, {
            key: 2,
            value: 'A3',
            name: 'A3'
        }, {
            key: 3,
            value: 'B1',
            name: 'B1'
        }, {
            key: 4,
            value: 'B2',
            name: 'B2'
        }, {
            key: 5,
            value: 'C1',
            name: 'C1'
        }, {
            key: 6,
            value: 'C2',
            name: 'C2'
        }, {
            key: 7,
            value: 'C3',
            name: 'C3'
        }, {
            key: 8,
            value: 'A2D',
            name: 'A2D'
        }, {
            key: 9,
            value: 'A2E',
            name: 'A2E'
        }, {
            key: 10,
            value: 'B2E',
            name: 'B2E'
        }],
        "RatingStar": [{
            key: 0,
            value: "Unknow",
            name: "未知"
        }, {
            key: 1,
            value: "One",
            name: "一星"
        }, {
            key: 2,
            value: "Two",
            name: "二星"
        }, {
            key: 3,
            value: "Three",
            name: "三星"
        }, {
            key: 4,
            value: "Four",
            name: "四星"
        }, {
            key: 5,
            value: "Five",
            name: "五星"
        }],
        "RatingType": [{
            key: 0,
            value: "ByTrader",
            name: "货主评价"
        }, {
            key: 1,
            value: "ByDriver",
            name: "司机评价"
        }],
        "RefundStatus": [{
            key: 0,
            value: "Processing",
            name: "处理中"
        }, {
            key: 1,
            value: "Success",
            name: "成功"
        }, {
            key: 2,
            value: "Failed",
            name: "失败"
        }, {
            key: 3,
            value: "Unprocessed",
            name: "未处理"
        }],
        "AgreementType": [{
            key: 0,
            value: "DriverContract",
            name: "司机货物运输合同"
        }, {
            key: 1,
            value: "UserTerm",
            name: "用户协议"
        }, {
            key: 2,
            value: "PrivacyPolicy",
            name: "隐私政策"
        }, {
            key: 3,
            value: "CollectionTerm",
            name: "代收协议"
        }, {
            key: 4,
            value: "AgentContract",
            name: "车队货物运输合同"
        }],
        "LocationType": [{
            key: 0,
            value: 'VehiclePosition',
            name: '当前位置'
        }, {
            key: 1,
            value: 'DispatchTrack',
            name: '运单轨迹'
        }, {
            key: 2,
            value: 'VehicleTrack',
            name: '车辆轨迹'
        }, {
            key: 3,
            value: 'DriverTrack',
            name: '司机轨迹'
        }],
        "LocationPlatform": [{
            key: 0,
            value: "ThirdParty",
            name: "第三方"
        }, {
            key: 1,
            value: "App",
            name: "App"
        }],
        "OrderStatus": [{
            key: 0,
            value: 'Checking',
            name: '待审核'
        }, {
            key: 1,
            value: 'Rejected',
            name: '已拒绝'
        }, {
            key: 2,
            value: 'Excuting',
            name: '执行中'
        }, {
            key: 3,
            value: 'CancelConfirm',
            name: '取消中'
        }, {
            key: 4,
            value: 'Cancelled',
            name: '已取消'
        }, {
            key: 5,
            value: 'Finished',
            name: '已完成'
        }, {
            key: 6,
            value: 'Recycled',
            name: '已回收'
        }],
        "TransInType": [{
            key: 0,
            value: 'PayBehalf',
            name: '代付'
        }, {
            key: 1,
            value: 'AdvanceSb',
            name: '垫资'
        }],
        "DifferTransType": [{
            key: 0,
            value: 'Pending',
            name: '待处理'
        }, {
            key: 1,
            value: 'Refund',
            name: '退款'
        }, {
            key: 2,
            value: 'Distribute',
            name: '已调拨'
        }, {
            key: 3,
            value: 'AddWhiteList',
            name: '加入白名单'
        }],
        "SmsMobileType": [{
            key: 0,
            value: 'DifferTransIn',
            name: '异名来账'

        }],
        "SettleBatchStatus": [{
            key: 0,
            value: 'NotUpload',
            name: '待申额度'
        }, {
            key: 1,
            value: 'Uploaded',
            name: '待核验'
        }, {
            key: 2,
            value: 'Verified',
            name: '已核验'
        }, {
            key: 3,
            value: 'Issusing',
            name: '凭证申请中'
        }, {
            key: 4,
            value: 'Issused',
            name: '已发行'
        }],
        "WaybillCheckStatus": [{
            key: 0,
            value: 'UnKnow',
            name: '未知'
        }, {
            key: 1,
            value: 'Pass',
            name: '核验通过'
        }, {
            key: 2,
            value: 'UnPass',
            name: '核验不通过'
        }, {
            key: 3,
            value: 'UnCheck',
            name: '未核验'
        }, {
            key: 4,
            value: 'NoSpecInfo',
            name: '无信息'
        }, {
            key: 5,
            value: 'IssuedSuccess',
            name: '凭证发行成功'
        }, {
            key: 6,
            value: 'IssuedFailed',
            name: '凭证发行失败'
        }, {
            key: 7,
            value: 'IssuedUnComplete',
            name: '凭证发行未完成'
        }, {
            key: 8,
            value: 'Create',
            name: '批次已创建'
        }, {
            key: 9,
            value: 'Upload',
            name: '已申额度'
        }, {
            key: 10,
            value: 'Cashing',
            name: '提现中'
        }, {
            key: 11,
            value: 'CashFailure',
            name: '提现失败'
        }, {
            key: 12,
            value: 'CashSuccess',
            name: '提现成功'
        }],
        "IgnoreSmallPos": [{
            key: 0,
            value: 'IgnoreJiao',
            name: '抹除角和分(截取)'
        }, {
            key: 1,
            value: 'IgnoreFen',
            name: '抹除分(截取)'
        }, {
            key: 2,
            value: 'IgnoreJiaoCarry',
            name: '抹除角和分(四舍五入)'
        }, {
            key: 3,
            value: 'IgnoreFenCarry',
            name: '抹除分(四舍五入)'
        }, {
            key: 10,
            value: 'IgnoreYuan',
            name: '抹除个位元(截取)'
        }, {
            key: 100,
            value: 'IgnoreShiYuan',
            name: '抹除个十位元(截取)'
        }],
        "TonType": [{
            key: 0,
            value: 'Single',
            name: '单车'
        }, {
            key: 1,
            value: 'Total',
            name: '汇总'
        }],
        "SignType": [{
            key: 0,
            value: 'Driver',
            name: '司机'
        }, {
            key: 1,
            value: 'Agent',
            name: '车队长'
        }, {
            key: 2,
            value: 'LogisCompany',
            name: '物流公司'
        }],
        "SignStatus": [{
            key: -1,
            value: 'Failed',
            name: '签约失败'
        }, {
            key: 0,
            value: 'UnSign',
            name: '未签约'
        }, {
            key: 1,
            value: 'Signed',
            name: '已签约'
        }, {
            key: 2,
            value: 'Signing',
            name: '签约中'
        }],
        "ChargeTiming": [{
            key: 0,
            value: 'Before',
            name: '前收'
        }, {
            key: 1,
            value: 'After',
            name: '后收'
        }],
        "OperationModel": [{
            key: 0,
            value: "SelfAll",
            name: "自购自营"
        }, {
            key: 1,
            value: "SelfBuyForRent",
            name: "自购出租"
        }, {
            key: 2,
            value: "JointOpera",
            name: "整合加盟"
        }, {
            key: 3,
            value: "Outsource",
            name: "委托承运"
        }, {
            key: 4,
            value: "CustomerLogis",
            name: "客户自提"
        }],
        "VehicleStatus": [{
            key: 0,
            value: "Stoped",
            name: "停运"
        }, {
            key: 1,
            value: "Waiting",
            name: "待派"
        }, {
            key: 3,
            value: "Dispatched",
            name: "已派"
        }],
        "AgentType": [{
            key: 0,
            value: "Own",
            name: "自有运力"
        }, {
            key: 1,
            value: "Delegate",
            name: "委托运力"
        }, {
            key: 2,
            value: "Customer",
            name: "客户运力"
        }, {
            key: 3,
            value: "TenantDefault",
            name: "平台运力"
        }],
        "FuelType": [{
            key: 0,
            value: "Gasoline",
            name: "汽油"
        }, {
            key: 1,
            value: "Diesel",
            name: "柴油"
        }, {
            key: 2,
            value: "CNG",
            name: "CNG"
        }, {
            key: 3,
            value: "LNG",
            name: "天然气"
        }, {
            key: 4,
            value: "Other",
            name: "其他"
        }, {
            key: 5,
            value: "Electric",
            name: "纯电"
        }, {
            key: 6,
            value: "Hydrogen",
            name: "氢能源"
        }, {
            key: 7,
            value: "Ethanol",
            name: "乙醇"
        }, {
            key: 8,
            value: "Methanol",
            name: "甲醇"
        }, {
            key: 9,
            value: "Hybrid",
            name: "混合动力"
        }],
        "VehicleContractType": [{
            key: 0,
            value: "Repayed",
            name: "已还贷款"
        }, {
            key: 1,
            value: "ToRepay",
            name: "未还贷款"
        }, {
            key: 2,
            value: "JointOpera",
            name: "整合加盟"
        }, {
            key: 3,
            value: "Outsource",
            name: "委托承运"
        }],
        "ManageStatus": [{
            key: 0,
            value: "Unconfirmed",
            name: "未确认"
        }, {
            key: 1,
            value: "Confirmed",
            name: "已确认"
        }, {
            key: 2,
            value: "Removed",
            name: "已移除"
        }],
        "NotificationState": [{
            key: 0,
            value: "UnRead",
            name: "未读"
        }, {
            key: 1,
            value: "Read",
            name: "已读"
        }],
        "ContractStatus": [{
            key: 0,
            value: "Initial",
            name: "初始"
        }, {
            key: 1,
            value: "signed",
            name: "签订"
        }, {
            key: 2,
            value: "Terminated",
            name: "终止"
        }],
        "VehicleDriverBindingStatus": [{
            key: 0,
            value: "Inactive",
            name: "未绑定"
        }, {
            key: 1,
            value: "Active",
            name: "当前绑定"
        }],
        "onlineSvcType": [{
            key: 0,
            value: "dispatch",
            name: "运单"
        }, {
            key: 1,
            value: "vehicle",
            name: "车辆"
        }, {
            key: 2,
            value: "driver",
            name: "司机"
        }, {
            key: 3,
            value: "loginkPayment",
            name: "资金流水"
        }],
        "SpecificationType": [{
            key: 0,
            value: "vehicleNo",
            name: "车牌号"
        }, {
            key: 1,
            value: "vehicleNoProinvceCity",
            name: "车牌号+省市"
        }, {
            key: 2,
            value: "vehicleNoAddress",
            name: "车牌号+地址名称"
        }],
        "AuditType": [{
            key: 0,
            value: "AgentAuth",
            name: "车队审核类型"
        }, {
            key: 1,
            value: "Vehicle",
            name: "车辆认证类型"
        }, {
            key: 2,
            value: "GoodsAuth",
            name: "货源审核类型"
        }, {
            key: 3,
            value: "DispatchAuth",
            name: "派遣单审核类型"
        }, {
            key: 4,
            value: "InvoiceAuth",
            name: "发票申请单审核类型"
        }, {
            key: 5,
            value: "DispatchDocsAuth",
            name: "派单单发货和签收单证审核类型"
        }, {
            key: 6,
            value: "TenantDriver",
            name: "司机认证类型"
        }, {
            key: 7,
            value: "VehicleLicenseAuth",
            name: "车辆行驶证审核类型"
        }, {
            key: 8,
            value: "VehicleOperationAuth",
            name: "道路运输证审核类型"
        }, {
            key: 9,
            value: "VehicleSemitrailerLicenseAuth",
            name: "挂车行驶证审核类型"
        }, {
            key: 10,
            value: "DriverLicenseAuth",
            name: "司机驾驶证审核类型"
        }, {
            key: 11,
            value: "DriverIdentityAuth",
            name: "司机身份证审核类型"
        }, {
            key: 12,
            value: "DriverQualificationAuth",
            name: "司机从业资格证审核类型"
        }],
        "TakeOrderType": [{
            key: 0,
            value: "ByAgent",
            name: "运力资料"
        },
        {
            key: 1,
            value: "ByDriver",
            name: "注册司机"
        }],
        "TagType": [{
            key: 0,
            value: "Vehicle",
            name: "车辆"
        }, {
            key: 1,
            value: "Goods",
            name: "货源"
        }],
        "PlateColorCode": [{
            key: 0,
            value: "Unknow",
            name: "未知"
        }, {
            key: 1,
            value: "Blue",
            name: "蓝色"
        }, {
            key: 2,
            value: "Yellow",
            name: "黄色"
        }, {
            key: 5,
            value: "Green",
            name: "绿色"
        }, {
            key: 9,
            value: "Other",
            name: "其他"
        }, {
            key: 91,
            value: "FarmerYellow",
            name: "农黄色"
        }, {
            key: 92,
            value: "FarmerGreen",
            name: "农绿色"
        }, {
            key: 93,
            value: "YellowGreen",
            name: "黄绿色"
        }, {
            key: 94,
            value: "GradientGreen",
            name: "渐变绿"
        }],
        "EmissionsStandards": [{
            key: 0,
            value: "Unknow",
            name: "未知"
        }, {
            key: 4,
            value: "IV",
            name: "国四"
        }, {
            key: 5,
            value: "V",
            name: "国五"
        }, {
            key: 6,
            value: "VI",
            name: "国六"
        }],
        "LivingFaceStatus": [{
            key: 0,
            value: "NotCheck",
            name: "未识别"
        }, {
            key: 1,
            value: "Pass",
            name: "识别通过"
        }, {
            key: 2,
            value: "NotPass",
            name: "识别失败"
        }],
        "OCRType": [{
            key: 1,
            value: "DrivingLicense",
            name: "驾驶证识别"
        }, {
            key: 2,
            value: "VehicelLicense",
            name: "行驶证识别"
        }, {
            key: 3,
            value: "OperationFile",
            name: "道路运输证识别"
        }, {
            key: 4,
            value: "Identity",
            name: "身份证识别"
        }, {
            key: 5,
            value: "LivingFace",
            name: "人脸活体识别"
        }],
        "OCRRelatedType": [{
            key: 0,
            value: "Front",
            name: "证件正面"
        }, {
            key: 1,
            value: "Back",
            name: "证件背面"
        }, {
            key: 20,
            value: "Driver",
            name: "司机人脸识别"
        }, {
            key: 21,
            value: "Agent",
            name: "车队长人脸识别"
        }],
        "AgentFeedback": [
            { key: 0, value: "PendingFeedback", name: "待反馈" },
            { key: 1, value: "Excuting", name: "执行中" },
            { key: 2, value: "QuotedPrice", name: "已报价" }
        ],
        "ExternalTaxDistrictPolicy": [{
            key: 0,
            value: "SameWithInternal",
            name: "终端客户结算优先"
        }, {
            key: 1,
            value: "InternalAllFirstPriority",
            name: "税源地结算优先"
        }],
        "FundFlow": [{
            key: 0,
            value: "ByCompany",
            name: "指定付款公司"
        }, {
            key: 1,
            value: "ByInputTaxPath",
            name: "按进项路径"
        }],
        "BankAccountType": [{
            key: 0,
            value: "Public",
            name: "公户"
        }, {
            key: 1,
            value: "Private",
            name: "私户"
        }],
        "UpFreightPricePolicy": [{
            key: 0,
            value: 'Default',
            name: '默认为上游运价'
        }, {
            key: 1,
            value: 'DefaultAutoDown',
            name: '默认为上游运价且自动计算下游运价'
        }, {
            key: 2,
            value: 'DownPrice',
            name: '司机(车队)下游抢单运价'
        }],
        "RiskStatus": [{
            key: 0,
            value: "Uncheck",
            name: "未校验"
        }, {
            key: 1,
            value: 'Checking',
            name: '校验中'
        }, {
            key: 2,
            value: 'Success',
            name: '校验通过'
        }, {
            key: 3,
            value: 'Failure',
            name: '校验失败'
        }],
        "RiskCheckTiming": [
            {
                key: 0,
                value: 'None',
                name: '不触发检查'
            }, {
                key: 1,
                value: 'DispatchSigned',
                name: '已签收'
            }, {
                key: 2,
                value: 'DispatchFinished',
                name: '运单已完成'
            }, {
                key: 3,
                value: 'DispatchPayed',
                name: '已支付'
            }
        ],
        "ETCOwnCar": [{
            key: 0,
            value: 'Self',
            name: '自有车'
        }, {
            key: 1,
            value: 'Logis',
            name: '网货车'
        }],
        "ETCState": [{
            key: 1,
            value: 'Ongoing',
            name: '未结束'
        }, {
            key: 2,
            value: 'Invoicing',
            name: '开票中'
        }, {
            key: 3,
            value: 'Invoiced',
            name: '已开票'
        }, {
            key: 4,
            value: 'NoMatch',
            name: '无匹配交易'
        }, {
            key: 9,
            value: 'Error',
            name: '交易异常'
        }, {
            key: 99,
            value: 'Overtime',
            name: '超时作废'
        }, {
            key: 200,
            value: 'NotSend',
            name: '未发送'
        }, {
            key: 201,
            value: 'NotFulfill',
            name: '不发送(不满足条件)'
        }, {
            key: 202,
            value: 'ApplyFail',
            name: '申请失败'
        }],
        "ETCError": [{
            key: -1,
            value: 'Fail',
            name: '失败'
        }, {
            key: 0,
            value: 'Success',
            name: '成功'
        }, {
            key: 10028,
            value: 'NoCompany',
            name: '企业不存在'
        }, {
            key: 10029,
            value: 'CompanyNotRegisted',
            name: '企业未注册'
        }, {
            key: 10030,
            value: 'VehicleRegisted',
            name: '车辆已备案'
        }, {
            key: 10031,
            value: 'VehicleNotRegisted',
            name: '车辆未备案'
        }, {
            key: 10032,
            value: 'OrderNotExisted',
            name: '运单不存在'
        }, {
            key: 10033,
            value: 'OrderFinished',
            name: '运单已完成'
        }, {
            key: 10034,
            value: 'OrderNotFinished',
            name: '运单未完成'
        }, {
            key: 10035,
            value: 'ReceiptFailed',
            name: '发票解析失败'
        }, {
            key: 10036,
            value: 'TaxNoNotExisted',
            name: '税号不存在'
        }, {
            key: 10037,
            value: 'OrderNumExisted',
            name: '税号已存在'
        }, {
            key: 403,
            value: 'ExceedLimit',
            name: '访问过于频繁'
        }, {
            key: 21002,
            value: 'ParamError',
            name: '参数错误'
        }, {
            key: 30000,
            value: 'RegisterVehicleError',
            name: '备案车辆失败'
        }, {
            key: 30001,
            value: 'StartOrderError',
            name: '开始运单错误'
        }, {
            key: 30002,
            value: 'EndOrderError',
            name: '结束运单错误'
        }, {
            key: 30003,
            value: 'FreightPriceAndDistanceError',
            name: '运距或运价不满足启运条件'
        }],
        "ETCTriggerEndState": [{
            key: 0,
            value: 'Arrived',
            name: '送达'
        }, {
            key: 1,
            value: 'Finished',
            name: '完成'
        }],
        "ETCPlateColor": [{
            key: 0,
            value: 'Blue',
            name: '蓝色'
        }, {
            key: 1,
            value: 'Yellow',
            name: '黄色'
        }, {
            key: 2,
            value: 'Black',
            name: '黑色'
        }, {
            key: 3,
            value: 'White',
            name: '白色'
        }, {
            key: 4,
            value: 'GradientGreen',
            name: '渐变绿色'
        }, {
            key: 5,
            value: 'GradientYellowGreen',
            name: '黄绿渐变色'
        }, {
            key: 6,
            value: 'GradientBlueWhite',
            name: '蓝白渐变色'
        }, {
            key: 9,
            value: 'Unknown',
            name: '未确定'
        }],
        "ServiceOperation": [{
            key: 1,
            value: 'Business',
            name: '营运'
        }, {
            key: 2,
            value: 'NonBusiness',
            name: '非营运'
        }],
        "BusinessState": [{
            key: 100,
            value: 'Starting',
            name: '尚未开始运单'
        }, {
            key: 103,
            value: 'Started',
            name: '已开始运单'
        }, {
            key: 106,
            value: 'Finished',
            name: '已结束运单'
        }, {
            key: 109,
            value: 'NonETC',
            name: '不对接ETC'
        }],
        "UserType": [{
            key: 0,
            value: "Driver",
            name: "司机"
        }, {
            key: 1,
            value: "Trader",
            name: "货主"
        }, {
            key: 2,
            value: "Agent",
            name: "经纪人"
        }, {
            key: 3,
            value: "Operation",
            name: "运营"
        }],
        "BalanceOperationType": [{
            key: 0,
            value: "Reduce",
            name: "减少余额"
        }, {
            key: 1,
            value: "Increase",
            name: "增加余额"
        },],
        "BalanceTradingOrderType": [{
            key: 11,
            value: "Refund",
            name: "退款"
        }, {
            key: 2,
            value: "Recharge",
            name: "充值"
        }, {
            key: 999,
            value: "Other",
            name: "其它"
        }],
        "PaymentApplySendStatus": [{
            key: 0,
            value: "NotSend",
            name: "未发送"
        }, {
            key: 1,
            value: "Sending",
            name: "发送中"
        }, {
            key: 2,
            value: "SendSuccess",
            name: "发送成功"
        }, {
            key: 3,
            value: "SendFail",
            name: "发送失败"
        }, {
            key: 4,
            value: "Rollback",
            name: "已撤回"
        }],
        "CebTransferStatus": [{
            key: 1,
            value: "Success",
            name: "成功"
        }, {
            key: 2,
            value: "Failed",
            name: "失败"
        }],
        "CebTransferType": [{
            key: 27,
            value: "CebInterest",
            name: "利息转自有资金"
        }],
        "InvoiceTypeCode": [{
            key: 0,
            value: "ValueAddedTax",
            name: "增值税专用发票"
        }, {
            key: 1,
            value: "EValueAddedTax",
            name: "增值税电子专用发票"
        }, {
            key: 2,
            value: "EInvoice",
            name: "全电发票"
        }],
        "IDOnlineCheckStatus": [{
            key: 0,
            value: "NotCheck",
            name: "未验证"
        }, {
            key: 1,
            value: "Pass",
            name: "通过"
        }, {
            key: 2,
            value: "NotPass",
            name: "未通过"
        }],
        "HideInList": [{
            key: 0,
            value: "None",
            name: "不屏蔽"
        }, {
            key: 1,
            value: "Driver",
            name: "只对司机屏蔽"
        }, {
            key: 2,
            value: "Agent",
            name: "只对车队屏蔽"
        }, {
            key: 3,
            value: "All",
            name: "全部屏蔽"
        }],
        "SelfAdjustFreightPrice": [{
            key: 0,
            value: "UP",
            name: "上游运价"
        }, {
            key: 1,
            value: "Down",
            name: "下游运价"
        }, {
            key: 2,
            value: "None",
            name: "无权限"
        }],
        "TraderBankCardStatus": [{
            key: 0,
            value: "Disabled",
            name: "禁用"
        }, {
            key: 1,
            value: "Enabled",
            name: "启用"
        }],
        "ReceiptSyncStatus": [{
            key: 0,
            value: "NotSync",
            name: "未同步"
        }, {
            key: 1,
            value: "Success",
            name: "已同步"
        }, {
            key: 2,
            value: "Failed",
            name: "同步失败"
        }],
        "CommProcessStatus": [{
            key: 0,
            value: 'Processing',
            name: "进行中"
        }, {
            key: 1,
            value: 'Success',
            name: "成功"
        }, {
            key: 2,
            value: 'Failed',
            name: "失败"
        }, {
            key: 3,
            value: 'UnProcessed',
            name: "未处理"
        }],
        "BindBankCardVerifyFailType": [{
            key: 0,
            value: 'SmsVerifyFailed',
            name: "短信验证码错误"
        }, {
            key: 1,
            value: 'OtherFailed',
            name: "其他错误"
        }],
        "DispatchClientType": [{
            key: 0,
            value: 'Other',
            name: "其他"
        }, {
            key: 1,
            value: 'App',
            name: "App"
        }, {
            key: 2,
            value: 'Wechat',
            name: "微信公众号"
        }, {
            key: 3,
            value: 'PC',
            name: "PC端"
        }],
        "SmsType": [{
            key: 0,
            value: 'Captcha',
            name: "验证码"
        }, {
            key: 1,
            value: 'Normal',
            name: "普通短信"
        }],
        "SmsTemplateCode": [
            { key: 0, value: 'SMS_Other', name: '其他' },
            { key: 1, value: 'SMS_52480239', name: '验证码' },
            { key: 2, value: 'SMS_156471872', name: '派遣单付款' },
            { key: 3, value: 'SMS_169865355', name: '账户提现' },
            { key: 4, value: 'SMS_175539112', name: '付款授权' },
            { key: 5, value: 'SMS_202815601', name: '异名汇入' },
            { key: 6, value: 'SMS_214520014', name: '司机提现' },
            { key: 7, value: 'SMS_232178799', name: '余额调整' },
            { key: 8, value: 'SMS_249585170', name: '收款人绑卡邀请验证' }
        ],
        "PayerRoleType": [ // 垫付方
            { key: 0, value: 'Platform', name: '平台' },
            { key: 1, value: 'Trader', name: '货主' },
            { key: 2, value: 'Agent', name: '经纪人' },
            { key: 3, value: 'Driver', name: '司机' }
        ],
        "SeparateAccountingType": [ // 下游服务费支付方式
            { key: 0, value: 'Before', name: '直付' },
            { key: 1, value: 'After', name: '转付' }
        ],
        "AccmulatedPeriod": [
            { key: 0, value: 'Monthly', name: "月度" },
            { key: 1, value: 'Quarterly', name: "季度" }
        ],
        "PaymentItemType": [
            { key: 0, value: 'Freight', name: "运费" },
            { key: 1, value: 'PrePay', name: "预付款" },
            { key: 2, value: 'ServiceCharge', name: "下游服务费" },
            { key: 3, value: 'LoadingCharge', name: "装车费" },
            { key: 4, value: 'UnloadingCharge', name: "卸车费" },
            { key: 5, value: 'OilCharge', name: "油费" },
            { key: 6, value: 'GasCharge', name: "气费" }
        ],
        "SeqTimeType": [
            { key: 0, value: 'Pay', name: "付款" },
            { key: 1, value: 'Cash', name: "提现" }
        ],
        "TransResourceEmptyField": [
            { key: 1, value: 'OperationNo', name: "道路运输证号" },
            { key: 2, value: 'VehicleQualificationNo', name: "经营许可证号" },
            { key: 3, value: 'DriverLicenseNo', name: "驾驶证号" },
            { key: 4, value: 'IdentityNo', name: "身份证号" },
            { key: 5, value: 'DriverQualificationNo', name: "从业资格证号" }
        ],
        "RetainPaymentFlag": [{
            key: 0,
            value: "NotPay",
            name: "未扣款"
        }, {
            key: 1,
            value: "Paid",
            name: "已扣款"
        }],
        "UploadStage": [{
            key: 0,
            value: "Load",
            name: "发货"
        }, {
            key: 1,
            value: "Receipt",
            name: "签收"
        }, {
            key: 2,
            value: "Final",
            name: "运输完成"
        }],
        "ImportType": [{
            key: 0,
            value: "Order",
            name: "订单导入"
        }, {
            key: 1,
            value: "Dispatch",
            name: "派车单导入"
        }, {
            key: 2,
            value: "OrderImportApi",
            name: "订单接口"
        }],
        "ImportStatus": [{
            key: 0,
            value: "Processing",
            name: "处理中"
        }, {
            key: 1,
            value: "Successed",
            name: "导入成功"
        }, {
            key: 2,
            value: "Fail",
            name: "导入失败"
        }, {
            key: 3,
            value: "IdVerifyFail",
            name: "联网验证失败"
        }],
        "ImportOrderDriverMobileChoice": [{
            key: 0,
            value: "FromInput",
            name: "Excel 中的手机号"
        }, {
            key: 1,
            value: "FromExist",
            name: "司机手机号"
        }],
        "CashWay": [{
            key: 0,
            value: "AutoCash",
            name: "逐笔提现"
        }, {
            key: 1,
            value: "MergeCash",
            name: "合并提现"
        }],
        "AccountBankChannel":[{
            key: 0,
            value: "ABC",
            name: "农业银行"
        }, {
            key: 1,
            value: "MYBANK",
            name: "网商银行"
        },{
            key: 2,
            value: "CITIC",
            name: "中信银行"
        }, {
            key: 3,
            value: "CEB",
            name: "光大银行"
        }, {
            key: 4,
            value: "SPABANK",
            name: "平安银行"
        }],
        "VehicleUploadType": [{
            key: 0,
            value: "MainCar",
            name: "主车上报"
        }, {
            key: 1,
            value: "Semitrailer",
            name: "挂车上报"
        }],
        "MailSendStatus": [{
            key: 0,
            value: "NotSend",
            name: "未发送"
        }, {
            key: 1,
            value: "Sending",
            name: "发送中"
        }, {
            key: 2,
            value: "Success",
            name: "发送成功"
        }, {
            key: 3,
            value: "Fail",
            name: "发送失败"
        }],
        "EInvoiceDownloadStaus": [{
            key: 0,
            value: "NotDownload",
            name: "未下载"
        }, {
            key: 1,
            value: "Downloaded",
            name: "已下载"
        }],
        "OperationOwnerType": [{
            key: 0,
            value: "Company",
            name: "公司"
        }, {
            key: 1,
            value: "Personal",
            name: "个体"
        }],
        "TrackQueryPolicy": [{
            key: 0,
            value: "CacheOnly",
            name: "只用缓存"
        }, {
            key: 1,
            value: "NoneCache",
            name: "不用缓存"
        }, {
            key: 2,
            value: "Auto",
            name: "自动策略"
        }],
        "ValidationType":[{
            key: 0,
            value: 'loadUnloadTimeConflict',
            name: "运单装卸货时间冲突"
        },{
            key: 1,
            value: 'LocationNotSync',
            name: "未自动核验运单轨迹"
        },{
            key: 2,
            value: 'VehicleNoChangeDispatchSync',
            name: "车牌号变更后需同步变更运单"
        },{
            key: 3,
            value: 'DriverChangeDispatchSync',
            name: "司机姓名或手机号变更后需同步变更运单"
        },{
            key: 4,
            value: 'WlhyUploadError',
            name: "监测平台数据上报错误"
        }],
        "ValidationStatus":[{
            key: 0,
            value: 'Todo',
            name: "未处理"
        }, {
            key: 1,
            value: 'Processing',
            name: "处理中"
        }, {
            key: 2,
            value: 'Finished',
            name: "已处理"
        }, {
            key: 3,
            value: 'Ignored',
            name: "已忽略"
        }],
        "TransportType":[{
            key: 0,
            value: 'RoadTransport',
            name: "道路运输"
        }, {
            key: 1,
            value: 'NonRoadTransport',
            name: "非道路运输"
        }]
    };

    var dictionariesProxy = new Proxy(dictionaries, {
        get: function (obj, prop) {
            if (prop in obj) {
                return obj[prop].slice();
            } else {
                console.log('The property   is not existed:');
            }
        },
        set: function (obj, prop, value) {
            console.log('You can not set the readonly object property value:');
        }
    });


    //Define bkm.DICT and bkm.CST readonly property
    Object.defineProperty(bkm, 'DICT', {
        enumerable: true,
        configurable: false,
        get: function () {
            return dictionariesProxy;
        },
        set: function (newValue) {
            console.log('You can not set the readonly object property map value to : ');
        }
    });
    Object.defineProperty(bkm, 'CST', {
        enumerable: true,
        configurable: false,
        writable: false,
        value: {}
    });

    //循环字典数据定义只读的常量对象   
    for (var x in dictionaries) {
        dictionaries[x].forEach(function (item) {
            if (item.value != null) {
                var cstKey = x + '_' + item.value;
                Object.defineProperty(bkm.CST, cstKey, {
                    enumerable: true,
                    configurable: false,
                    writable: false,
                    value: item.key
                });
                var cstCN = x + '_' + item.value + '_CN';
                Object.defineProperty(bkm.CST, cstCN, {
                    enumerable: true,
                    configurable: false,
                    writable: false,
                    value: item.name
                });
                var cstEN = x + '_' + item.value + '_EN';
                Object.defineProperty(bkm.CST, cstEN, {
                    enumerable: true,
                    configurable: false,
                    writable: false,
                    value: item.value
                });
            }
        });
    }

    //迭代常量对象数据，定义只读的常量对象
    (function iterObjKeys(obj, props) {
        if (typeof obj != 'object') return null;
        props = props || [];
        for (var i in obj) {
            if (typeof (obj[i]) == 'object') {
                props.push(i);
                iterObjKeys(obj[i], props);
                props.pop(i);
            } else {
                var cstKey = props.length > 0 ? (props.join('_') + '_' + i) : i;
                Object.defineProperty(bkm.CST, cstKey, {
                    enumerable: true,
                    configurable: false,
                    writable: false,
                    value: obj[i]
                });
            }
        }
    })(bkm.commConstants);


})();